<%@ include file="/common/taglibs.jsp"%>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>

<HTML>
	<HEAD>
		<title>游戏后台管理系统</title>		
		<STYLE type="text/css">
			A:link { COLOR: #000000; TEXT-DECORATION: none }
			A:visited { COLOR: #000000; TEXT-DECORATION: none }
			A:active { COLOR: #f78601 }
			A:hover { COLOR: #064b9d; TEXT-DECORATION: none }
			TD { FONT-SIZE: 9pt; COLOR: #000000; FONT-FAMILY: }
		</STYLE>

		<script language="javascript">
		
		function setFirstFocus()
		{
		    document.all.nameSpan.display = "none";
			document.all.pwdSpan.display = "none";
			document.all.employeeNo.focus();
		}
		function onSubmit(){
		    document.all.nameSpan.display = "none";
			document.all.pwdSpan.display = "none";
		    var myForm = document.getParameterById("loginForm");
			var employeeNo = document.getParameterById("employeeNo");
			var userPwd = document.getParameterById("userPwd");
			if(employeeNo.value == ""){
			    document.all.nameSpan.display = "";
			    return false;
			}
			if(userPwd.value == ""){
			    document.all.pwdSpan.display = "";
			    return false;
			}
			myForm.submit();
			
		}
		
		
	function sumitinfo()
	{
	 	
		var userno = $("#employeeNo").attr("value");
		alert(userno);
		var pwd = $("#userPwd").attr("value");
		getAjaxData("login_login.do","text","userno="+userno+"&pwd="+pwd,"1");
	}
	
	function resultData1(resData)
	{
		alert(resData);
	}
		</script>
		
		<script language="JavaScript"> 
			if (window != top) 
			top.location.href = location.href;
		</script> 
		<base href="<%=basePath%>"> 
	</HEAD>
	<body leftMargin="0" background="images/login/dl-bk.gif" topMargin="0" onLoad="setFirstFocus()">
		<form name="login" id="loginForm" action="login_adminlogin.do" method="post">
			<table height="69" cellSpacing="0" cellPadding="0" width="100%" border="0">
				<tr>
					<td width="100%"></td>
				</tr>
			</table>
			<table cellSpacing="0" cellPadding="0" width="100%" border="0">
				<tr>
					<td vAlign="top" width="100%"><IMG height="80" src="<c:url value="images/login/dl-top01.gif"/>" width="789" border="0"></td>
				</tr>
			</table>
			<table height="300" cellSpacing="0" cellPadding="0" width="789" background="images/login/dl-de.jpg"
				border="0">
				<tr>
					<td vAlign="top" width="735" rowSpan="3">
						<table cellSpacing="0" cellPadding="0" width="100%" border="0">
							<tr>
								<td width="54%"></td>
								<td width="37%" colSpan="2" height="60"></td>
								<td width="9%"></td>
							</tr>
							<tr height="50">
								<td width="54%"></td>
								<td width="37%" colSpan="2"><IMG height="32" src="images/login/dl-yhdl.gif" width="84" border="0"></td>
								<td width="9%"></td>
							</tr>
							<tr>
								<td width="54%" style="HEIGHT: 28px"></td>
								<td width="6%" style="HEIGHT: 28px">地&nbsp;域</td>
								<td width="31%" style="HEIGHT: 28px">
									<select name="ddlArea" id="ddlArea" style="width:120px;">
										<option value="0">湖南省</option>
										<option value="1350">长沙</option>
										<option value="2">岳阳</option>
										<option value="21">湘潭</option>
										<option value="27">株洲</option>
										<option value="34">衡阳</option>
										<option value="44">郴州</option>
										<option value="56">常德</option>
										<option value="66">益阳</option>
										<option value="73">娄底</option>
										<option value="80">邵阳</option>
										<option value="92">湘西自治州</option>
										<option value="102">张家界</option>
										<option value="108">怀化</option>
										<option value="122">永州</option>									
									</select>
									
									</td>
								<td width="9%" style="HEIGHT: 28px"></td>
							</tr>
							<tr>
								<td style="HEIGHT: 38px" width="54%"></td>
								<td style="HEIGHT: 38px" width="6%">工&nbsp; 号</td>
								<td style="HEIGHT: 38px" width="31%">
							<input name="employeeNo" type="text" id="employeeNo" size="14" style="WIDTH: 120px; HEIGHT: 22px" />
							    <span id="nameSpan" style="color:Red;visibility:hidden;">工号不能为空</span>
								</td>
								<td style="HEIGHT: 38px" width="9%"></td>
							</tr>
							<tr>
								<td width="54%"></td>
								<td width="6%">密&nbsp; 码</td>
								<td width="31%">
								<input name="userPwd" type="password" id="userPwd" size="14" style="WIDTH: 120px; HEIGHT: 21px" />
								<span id="pwdSpan" style="color:Red;visibility:hidden;">密码不能为空</span>
								</td>
								<td width="9%"></td>
							</tr>
							<tr>
								<td width="54%" style="HEIGHT: 49px"></td>
								<td width="37%" colSpan="2" style="HEIGHT: 49px">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					<input type="image" id="btn_submit" src="images/login/dl-login.gif" border="0" onclick="onSubmit()" />
					</td>
								<td width="9%" style="HEIGHT: 49px"></td>
							</tr>
							<tr>
								<td align="right" width="100%" colSpan="3"></td>
							</tr>
						</table>
					</td>
					<td align="center" width="48"></td>
				</tr>
				<tr>
					<td width="48"></td>
				</tr>
				<tr>
					<td width="48">
					</td>
				</tr>
			</table>
		</form>
		<script language="javascript">
		var message = "${LOGIN_ERR_MSG}";
		if(message !=""){
			alert(message);
		}
		</script>
		
	</body>
</HTML>
